package com.demo.springBoot2.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author pl711@qq.com
 * @PackageName springBoot2
 * @Package com.demo.springBoot2.entity.vo
 * @Date 2024/3/27 20:43
 * @Version 1.0
 */
@Getter
@Setter
@ApiModel(value = "ROle对象", description = "角色j")
public class RoleVO implements Serializable {

    @NotNull(message = "角色名不能为空")
    @Length(min = 1,max = 18,message = "角色名字必须在18位以内")
    @ApiModelProperty(value = "角色名字",required = true)
    private String roleName;


    @NotNull(message = "角色权限字符串不能为空")
    @Length(min = 1,max = 18,message = "角色权限字符串在90位以内")
    @ApiModelProperty(value = "角色权限字符串",required = true)
    private String roleKey;
}
